// 防止底部工具栏挡住page内容(设置为工具栏的高度)
page{
    padding-bottom: 90rpx;
}
// 商品详情
.goods_detail{
    // 轮播图
    .detail_swiper{
        // 屏幕宽度为100vw，让高度为宽度的70%
        height: 65vw;
        text-align: center;
        .detail_img{
            width: 60%;
        }
    }
    // 商品价格
    .goods_price{
        color: var(--themeColor);
        font-size: 32rpx;
        font-weight: bold;
        padding: 15rpx;
    }
    // 商品名称
    .goods_name_row{
        display: flex;
        color: #4A4646;
        font-size: 30rpx;
        .goods_name{
            flex: 7;
            padding: 0 10rpx;
            border-right: 2rpx solid #000;
            // 这四行用于文字省略
            display: -webkit-box;
            overflow: hidden;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
        }
        .goods_collect{
            flex: 2;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: center;
            .icon-shoucang1{
                color: orangered;
            }
        }
    }
    // 图文详情
    .goods_info{
        .goods_info_title{
            .goods_price()
        }
    }
    // 底部工具栏
    .btn_tool{
        position: fixed;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 90rpx;
        background-color: #fff;
        border-top: 1rpx solid #ccc;
        display: flex;
        .tool_item{
            text-align: center;
            &:nth-child(-n+3){
                position: relative;
                flex: 1;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                // 让子元素按钮隐藏在父元素后面
                .btn{
                    width: 100%;
                    height: 100%;
                    position: absolute;
                    left: 0;
                    top: 0;
                    opacity: 0;
                }
            }
            &:nth-child(n+4){
                flex: 2;
                line-height: 90rpx;
                color: #fff;
                font-size: 30rpx;
                font-weight: bold;
                background-color: #FFA500;
            }
            &:nth-child(5){
                background-color: var(--themeColor);
            }
        }
    }
}